#ifndef JVKBUTTON_H
#define JVKBUTTON_H

#include <QToolButton>

namespace QTE
{

class JVKButtonPrivate;

class /*Q_DECL_HIDDEN*/ JVKButton : public QToolButton
{
	Q_OBJECT

public:
	explicit JVKButton(QWidget *parent = nullptr);
	~JVKButton();

public:
	enum Action
	{
		LongPress,
		RightPress,
	};

Q_SIGNALS:
	void actionTrigger(Action action);

protected:
	void mousePressEvent(QMouseEvent *event) override;
	void mouseReleaseEvent(QMouseEvent *event) override;

private:
	JVKButtonPrivate *d_ptr;
};

} //namespace QTE


#endif //JVKBUTTON_H
